package
{
	import flash.display.Sprite;
	import flash.display.Stage;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	
	import org.thinktube.domani.*;
	
	[SWF (frameRate="30",backgroundColor="#e8e3dd")]
	public class ControllerTest extends Sprite
	{		
		private var page_width:int;
		private var page_height:int;
		public var footer_height:int = 40;
		public var nav_height:int = 170;
		
		public function ControllerTest()
		{
			stage.align = StageAlign.TOP_LEFT;
			stage.scaleMode = StageScaleMode.NO_SCALE;						
			page_width = stage.stageWidth;
			page_height = stage.stageHeight;
			
			trace(page_width, page_height); // 1440, 794 
			
			var background:Background = new Background(0,0,page_width,page_height,0x555555);
			this.addChild(background);
			
			var footer:Footer = new Footer(page_height - footer_height,page_width,footer_height);
			this.addChild(footer);
			
			var nav:Nav = new Nav(page_height - nav_height - footer_height,page_width,nav_height);
			this.addChild(nav);
 		}
	}
}